package com.hdax.filter;

import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

import org.apache.shiro.web.filter.authc.FormAuthenticationFilter;
import org.apache.shiro.web.util.WebUtils;

/**
 * 表单身份验证过滤器
 * 用于登录成功后跳转到指定页面
 *
 * @author Aizen
 * @date 2022/05/06
 */
public class MyFormAuthenticationFilter extends FormAuthenticationFilter {

	@Override
	protected void issueSuccessRedirect(ServletRequest request, ServletResponse response) throws Exception {
		WebUtils.issueRedirect(request, response, this.getSuccessUrl(),null,true);
	}
	
}
